//
//  RestHelper.h
//  PostMessa
//
//  Created by never down on 15-5-12.
//  Copyright (c) 2015年 ygy_ios. All rights reserved.
//
#import <Foundation/Foundation.h>

/*
 用于发送 HTTP  请求的辅助类
 封装  POST  请求
 */

@interface RESTHelper : NSObject
{
    NSString  * requestUrlPath;
    id  mdelegate;
    SEL doneSelector;
    SEL errorSelector;
}

-(id)initWithUrl:(NSString*) urlPath //URL请求路径
     postData:(NSDictionary*) data   //postData参数
     delegate:(id) aDelegate         //代理
     onErrorCallback:(SEL) errorCallback //error回调
     onCompletedCallback:(SEL) complectedCallback; //完成回调



@end